package com.ruoyi.business.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 收益对象 bu_earnings
 *
 * @author ruoyi
 * @date 2024-09-12
 */
@Data
public class BuEarnings extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 节省的电量 */
    @Excel(name = "节省的电量")
    private Integer conserveElectricity;

    /** 收益金额 */
    @Excel(name = "收益金额")
    private BigDecimal earningsAmount;

    /** 收益时间 */
    @JsonFormat(pattern = "yyyy-MM")
    @Excel(name = "收益时间", width = 30, dateFormat = "yyyy-MM")
    private Date time;

    /** 记录创建人ID */
    @Excel(name = "记录创建人ID")
    private Long createdBy;

    /** 记录最后修改人ID */
    @Excel(name = "记录最后修改人ID")
    private Long updatedBy;

    /** 记录的创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录的创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 记录的最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录的最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 客户ID */
    @Excel(name = "客户ID")
    private Long customId;

    /** 部门配置 */
    @Excel(name = "部门配置")
    private Integer departmentAllocation;

    /** 组长配置 */
    @Excel(name = "组长配置")
    private Integer leaderAllocation;

    /** 组员配置 */
    @Excel(name = "组员配置")
    private Integer crewAllocation;

    /** 客户配置 */
    @Excel(name = "客户配置")
    private Integer customAllocation;

    /** 节省的电费 */
    @Excel(name = "节省的电费")
    private BigDecimal conservelAmount;

    /** 减排碳量 */
    @Excel(name = "减排碳量")
    private BigDecimal carbonEmissions;

    public String customName;

    private BigDecimal firmAmount;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setConserveElectricity(Integer conserveElectricity)
    {
        this.conserveElectricity = conserveElectricity;
    }

    public Integer getConserveElectricity()
    {
        return conserveElectricity;
    }
    public void setEarningsAmount(BigDecimal earningsAmount)
    {
        this.earningsAmount = earningsAmount;
    }

    public BigDecimal getEarningsAmount()
    {
        return earningsAmount;
    }
    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }
    public void setCreatedBy(Long createdBy)
    {
        this.createdBy = createdBy;
    }

    public Long getCreatedBy()
    {
        return createdBy;
    }
    public void setUpdatedBy(Long updatedBy)
    {
        this.updatedBy = updatedBy;
    }

    public Long getUpdatedBy()
    {
        return updatedBy;
    }
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setCustomId(Long customId)
    {
        this.customId = customId;
    }

    public Long getCustomId()
    {
        return customId;
    }
    public void setDepartmentAllocation(Integer departmentAllocation)
    {
        this.departmentAllocation = departmentAllocation;
    }

    public Integer getDepartmentAllocation()
    {
        return departmentAllocation;
    }
    public void setLeaderAllocation(Integer leaderAllocation)
    {
        this.leaderAllocation = leaderAllocation;
    }

    public Integer getLeaderAllocation()
    {
        return leaderAllocation;
    }
    public void setCrewAllocation(Integer crewAllocation)
    {
        this.crewAllocation = crewAllocation;
    }

    public Integer getCrewAllocation()
    {
        return crewAllocation;
    }
    public void setCustomAllocation(Integer customAllocation)
    {
        this.customAllocation = customAllocation;
    }

    public Integer getCustomAllocation()
    {
        return customAllocation;
    }
    public void setConservelAmount(BigDecimal conservelAmount)
    {
        this.conservelAmount = conservelAmount;
    }

    public BigDecimal getConservelAmount()
    {
        return conservelAmount;
    }
    public void setCarbonEmissions(BigDecimal carbonEmissions)
    {
        this.carbonEmissions = carbonEmissions;
    }

    public BigDecimal getCarbonEmissions()
    {
        return carbonEmissions;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("conserveElectricity", getConserveElectricity())
            .append("earningsAmount", getEarningsAmount())
            .append("time", getTime())
            .append("createdBy", getCreatedBy())
            .append("updatedBy", getUpdatedBy())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("delFlag", getDelFlag())
            .append("customId", getCustomId())
            .append("departmentAllocation", getDepartmentAllocation())
            .append("leaderAllocation", getLeaderAllocation())
            .append("crewAllocation", getCrewAllocation())
            .append("customAllocation", getCustomAllocation())
            .append("conservelAmount", getConservelAmount())
            .append("carbonEmissions", getCarbonEmissions())
            .toString();
    }
}
